import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/components/icon/iconfont";
import "@/common.less";
import echarts from 'echarts';

import VueCookies from "vue-cookies";
import {
  Button,
  Spin,
  Layout,
  Icon,
  Menu,
  Form,
  Input,
  Row,
  Col,
  Select,
  Upload,
  Modal,
  DatePicker,
  Checkbox,
  Table,
  Tag,
  Dropdown,
  Badge,
  Tabs,
  Card,
  Divider,
  Popconfirm,
  Avatar,
  message,
  InputNumber,
  Radio,
  Collapse,
  Tooltip,
  Drawer,
  List,
  Switch,
  Tree,
  Transfer,
  Pagination,
  Popover,
  Empty,
  ConfigProvider,
  AutoComplete,
  FormModel,
  Descriptions,
  Alert,
  Timeline,
  Progress
} from "ant-design-vue";

Vue.config.productionTip = false;
Vue.use(Button);
Vue.use(Spin);
Vue.use(Layout);
Vue.use(Icon);
Vue.use(Menu);
Vue.use(Form);
Vue.use(Input);
Vue.use(Row);
Vue.use(Col);
Vue.use(Select);
Vue.use(Upload);
Vue.use(Modal);
Vue.use(DatePicker);
Vue.use(Checkbox);
Vue.use(Table);
Vue.use(Tag);
Vue.use(Popconfirm);
Vue.use(InputNumber);
Vue.use(Radio);
Vue.use(Collapse);
Vue.use(Tooltip);
Vue.use(Drawer);
Vue.use(List);
Vue.use(Switch);
Vue.use(Tree);
Vue.use(Transfer);
Vue.use(Pagination);
Vue.use(Popover);
Vue.use(Empty);
Vue.use(ConfigProvider);
Vue.use(AutoComplete);
Vue.use(FormModel);
Vue.use(Descriptions);
Vue.use(Alert);
Vue.use(Timeline);
Vue.use(Progress);
Vue.prototype.$message = message;
Vue.prototype.$confirm = Modal.confirm;
Vue.prototype.$echarts = echarts;
// import http from "./api/request";

Vue.config.productionTip = false;
Vue.use(Button);
Vue.use(Spin);

// Vue.prototype.http = http;

Vue.use(Dropdown);
Vue.use(Badge);
Vue.use(Tabs);
Vue.use(Card);
Vue.use(Divider);
Vue.use(Avatar);
Vue.use(VueCookies);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
